﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminItem.aspx.cs" Inherits="Manage_Admin_AdminItem" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<!--#include file="../js/html_head.inc"-->
<link rel="stylesheet" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" type="text/css" />
</head>

<body> 
    <%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
<form id="form1"  action="?act=<%=ActFlag %>" method="post" onsubmit="return validator(this)">
    <div class="mycolumn">
        <div class="columntitle"><%=ActName %>管理员</div>
	    <table width="95%" align="center" cellpadding="3" cellspacing="3" >
	        <tr>
	          <td width="160" align="left">
	                <img src="../pic/icons/help.gif" alt="唯一标识此角色的字符串"  onclick="helpInf(this)"/> 管理员登录名：
	          </td>
	          <td width="88%" align="left"> 
	                <input name="Username" type="text" value="<%=modelAdmin.Username %>" valid="required" errmsg="请输入管理员登录名。"/>
	          </td>
	        </tr>
	       <%-- <tr style="display:<%=ManageHelper.CheckAdminHavePower("system_adminedit")==true?"":"none"%><%=modelAdmin.UserID==0?"":"none"%>">--%>
	        <tr>
	            <td align="left">
                    <img  src="../pic/icons/help.gif" alt="管理员密码" onclick="helpInf(this)" /> <span id="ctl04_ctl00_lblLabel">管理员密码：</span>
	            </td>
	            <td align="left">
	                <input  type="password" id="Password" name="Password" value=""  valid="limit" max="30" min="6" errmsg="密码长度应在6~11位之间"/>
		        </td>
	        </tr>
	        <tr>
	            <td align="left">
                    <img src="../pic/icons/help.gif" alt="确认密码" onclick="helpInf(this)" /> <span id="Span1">确认密码：</span>
	            </td>
	                <td align="left"><input  type="password" id="ChkPassword" value=""  name="ChkPassword"  valid="eqaul" eqaulName="Password" errmsg="两次密码输入不同。" />
		        </td>
	        </tr>
	        <tr>
	            <td align="left">
                    <img src="../pic/icons/help.gif" alt="真实姓名" onclick="helpInf(this)" /> 真实姓名：
	            </td>
	                <td align="left"><input  type="text" id="RealName" value="<%=modelAdmin.RealName %>"  name="realname"  valid="required" errmsg="请输入真实姓名。" />
		        </td>
	        </tr>
        	<tr>
              <td align="left" width="130">
                    <img src="../pic/icons/help.gif" alt="帐户状态"  onclick="helpInf(this)"/> 帐户状态：
              </td>
              <td align="left" class="tdradio"> 
                    <input type="radio" name="State" <%=modelAdmin.State==0?"checked":"" %> /> 锁定 　　　<input type="radio" name="State" <%=modelAdmin.State==1?"checked":"" %>  value="1"/> 正常
              </td>
            </tr>
	    </table>	
    </div>
    
    <div class="chkdiv" id="chkdiv">
        <div class="columntitle"><img src="../pic/icons/help.gif" alt="为管理员分配角色"  onclick="helpInf(this)"/>分配角色</div>
	    <table width="95%" align="center" cellpadding="3" cellspacing="3" >
	        <tr>
	          <td align="left">
	            <%=KeRui.BLL.Common.GetCheckBoxListForRole("RoleIDs", modelAdmin.RoleIDs, bllAdmin.GetRoleChk(), modelAdmin.UserID)%>
	          </td>
	        </tr>
	    </table>	
    </div>
    
    
    <div class="chkdiv" id="Div1">
        <div class="columntitle"><img src="../pic/icons/help.gif" alt="为管理员分配站点"  onclick="helpInf(this)"/>站点</div>
	    <div class="sitesDiv" id="sitesDiv">
	            <%=KeRui.BLL.Common.GetCheckBoxListForSite("SiteID", "," + modelAdmin.RoleFlags + ",", "," + modelAdmin.PlusFlag + ",", bllCmsSite.GetCmsSiteChk())%>
        </div>
    </div>
    <!--
    <div class="sitesDiv" id="sitesDiv">
        <%=GetRoleFlagList()%>
    </div>
    -->
    
    <table width="95%" align="center" cellspacing="0" cellpadding="0" >
      <tr>
        <td ></td>
        <td align="center" >
	        <input type="submit" name="Submit" value="<%=ActName %>" id="Submit" class="button" />
	        <input type="button" name="back"   value="返回"  class="button" onclick="javascript:location.href='adminlist.aspx'" style="display:<%=modelAdmin.UserID==0?"none":"" %>" /> 
	        &nbsp;<input  type="hidden" name="UserID" value="<%=modelAdmin.UserID %>" />
        </td>
        <td ></td>
      </tr>
    </table>
</form>
</body>
</html>
